<%-- 
    Document   : InformacionesDetalladasProducto
    Created on : 31 mai 2012, 14:10:38
    Author     : isen
--%>

<%@page import="persistence.PersistenceImplementation"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Informaciones detalladas</title>
    </head>
    <body>
            <% String status = (String) request.getSession().getAttribute("status");%>
        <center>
            <h1>Informaciones detalladas:</h1>

            <jsp:useBean id="productdetails" scope="request" class="model.Product" />
            Name of the product: <jsp:getProperty name="productdetails" property="nombre" /><br />
            Stock: <jsp:getProperty name="productdetails" property="stock" /><br />
            Short description: <jsp:getProperty name="productdetails" property="descripcionCorta" /><br />
            Long description: <jsp:getProperty name="productdetails" property="descripcionLarga" /><br />
            Price: <jsp:getProperty name="productdetails" property="precio" /><br />

        </center>
            
             <% if (status.equals("admin")) {%>
                 <%@include file="/WEB-INF/include/menuAdministrador.jsp" %>
            <%} else if (status.equals("client")) {%>
                 <%@include file="/WEB-INF/include/menuClient.jsp" %>
            <%}%>

</body>
</html>
